extends Button

const TO_IMPORT: String = "scenes/click_move.tscn"

# Called when the node enters the scene tree for the first time.
func _ready():
	ResourceLoader.load_threaded_request(TO_IMPORT)
	self.pressed.connect(_on_button_pressed)

func _on_button_pressed():
	var scn = ResourceLoader.load_threaded_get(TO_IMPORT)
	var inst = scn.instantiate()
	add_child(inst)

# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
	pass
